.resize-container {
    position: relative;
    display: inline-block;
    cursor: move;
    margin: 0 auto;
}

.resize-container img {
    display: block
}

.resize-container:hover img,
.resize-container:active img {
    outline: 2px dashed rgba(222, 60, 80, .9);
}

.resize-handle-ne,
.resize-handle-se,
.resize-handle-nw,
.resize-handle-sw {
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(222, 60, 80, .9);
    z-index: 999;
}

.resize-handle-nw {
    top: -5px;
    left: -5px;
    cursor: nw-resize;
}

.resize-handle-sw {
    bottom: -5px;
    left: -5px;
    cursor: sw-resize;
}

.resize-handle-ne {
    top: -5px;
    right: -5px;
    cursor: ne-resize;
}

.resize-handle-se {
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
    width: 600px;
    height: 1000px;
    box-sizing: content-box;
    pointer-events: none;
    /*background-image: url("../img/muoban_2.png");*/
}

/*.overlay:after,*/
/*.overlay:before {*/
/*content: '';*/
/*position: absolute;*/
/*display: block;*/
/*width: 204px;*/
/*height: 40px;*/
/*border-left: dashed 2px rgba(222,60,80,.9);*/
/*border-right: dashed 2px rgba(222,60,80,.9);*/
/*}*/

/*.overlay:before {*/
/*top: 0;*/
/*margin-left: -2px;*/
/*margin-top: -40px;*/
/*}*/

/*.overlay:after {*/
/*bottom: 0;*/
/*margin-left: -2px;*/
/*margin-bottom: -40px;*/
/*}*/

/*.overlay-inner:after,*/
/*.overlay-inner:before {*/
/*content: '';*/
/*position: absolute;*/
/*display: block;*/
/*width: 40px;*/
/*height: 204px;*/
/*border-top: dashed 2px rgba(222,60,80,.9);*/
/*border-bottom: dashed 2px rgba(222,60,80,.9);*/
/*}*/

.overlay-inner:before {
    left: 0;
    margin-left: -40px;
    margin-top: -2px;
}

.overlay-inner:after {
    right: 0;
    margin-right: -40px;
    margin-top: -2px;
}

.btn-crop {
    position: absolute;
    vertical-align: bottom;
    right: 5px;
    bottom: 5px;
    padding: 6px 10px;
    z-index: 999;
    background-color: rgb(222, 60, 80);
    border: none;
    border-radius: 5px;
    color: #FFF;
}

.btn-crop img {
    vertical-align: middle;
    margin-left: 8px;
}